﻿<Window x:Class="InfFront.InfoViews.WPF.EntryEditWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:InfFront.InfoViews.WPF"
    Height="{Binding Path=VisualSettings.EntryEditWindowHeight, FallbackValue=400, Mode=TwoWay}"
    Width="{Binding Path=VisualSettings.EntryEditWindowWidth, FallbackValue=400, Mode=TwoWay}" 
    WindowState="{Binding Path=VisualSettings.EntryEditWindowState, FallbackValue=Normal, Mode=TwoWay}"
    WindowStartupLocation="CenterOwner"         
    Closing="this_Closing"
    Title="Edit" ShowInTaskbar="False">
    
    <Window.Resources>
        <local:IconedObjectToNormal16x16ImageConverter x:Key="getNormal16x16Image"/>        
    </Window.Resources>

    <Window.Icon>
        <Binding Converter="{StaticResource getNormal16x16Image}" />
    </Window.Icon>

    <Grid>
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                <GradientStop Offset="0" Color="{Binding Path=VisualSettings.PrimaryBackgroundColor, FallbackValue=Lavender}"/>
                <GradientStop Offset="1" Color="{Binding Path=VisualSettings.SecondaryBackgroundColor, FallbackValue=Azure}"/>
            </LinearGradientBrush>
        </Grid.Background>
        
        <local:SingleEntryFrame x:Name="editFrame" Width="Auto" Height="Auto" />

    </Grid>
</Window>
